﻿using DoNet.Bpmn.Models;
using DoNet.Core;

namespace DoNet.Bpmn.IRepostitories
{
    public interface IBpmnNodePersonnelEmplConfigRepository : IRepository<BpmnNodePersonnelEmplConfig>
    {
        #region 同步方法
        /// <summary>
        /// 同步
        /// </summary>
        /// <param name="bpmnNodePersonneId"></param>
        /// <returns></returns>
        BpmnNodePersonnelEmplConfig GetByBpmnNodePersonneId(long bpmnNodePersonneId);
        /// <summary>
        /// 同步
        /// </summary>
        /// <param name="bpmnNodePersonneId"></param>
        /// <returns></returns>
        IEnumerable<BpmnNodePersonnelEmplConfig> GetListByBpmnNodePersonneId(long bpmnNodePersonneId);
        #endregion 同步方法

        #region 异步方法
        /// <summary>
        /// 同步
        /// </summary>
        /// <param name="bpmnNodePersonneId"></param>
        /// <returns></returns>
        Task<BpmnNodePersonnelEmplConfig> GetByBpmnNodePersonneIdAsync(long bpmnNodePersonneId);
        /// <summary>
        /// 异步
        /// </summary>
        /// <param name="bpmnNodePersonneId"></param>
        /// <returns></returns>
        Task<IEnumerable<BpmnNodePersonnelEmplConfig>> GetListByBpmnNodePersonneIdAsync(long bpmnNodePersonneId);
        #endregion 异步方法
    }
}
